package com.crayfish.quduo.http;

import com.crayfish.quduo.commom.Configs;
import com.crayfish.quduo.model.TianXinBean;

import java.util.List;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by crayfish on 2016/12/22.
 */
public interface TianXinApis {
    String HOST = Configs.TX_URL;

    @GET("meinv/")
    Observable<TianXinResponse<List<TianXinBean>>> getMeinvList(@Query("key")String key,
                                                                @Query("num")String num,
                                                                @Query("page")String page,
                                                                @Query("rand")String rand);

    @GET("travel/")
    Observable<TianXinResponse<List<TianXinBean>>> getTravelList(@Query("key")String key,
                                                                @Query("num")String num,
                                                                @Query("page")String page,
                                                                @Query("rand")String rand);
}
